package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @author lyl
 * @since 2021-10-04
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("t_financial")
public class FinancialBean extends Model {

    private static final long serialVersionUID = 1L;

    /**
     * 提现id
     */
    @TableId(value = "financial_id", type = IdType.AUTO)
    private Integer financialId;

    /**
     * 提现日期
     */
    @TableField("daytime")
    private String daytime;

    /**
     * 提现金额
     */
    @TableField("getmoney")
    private Integer getmoney;

    /**
     * 提现前余额
     */
    @TableField("balance")
    private Integer balance;

    /**
     * 骑手外键
     */
    @TableField("fk_riderId")
    private Integer riderId;

    /**
     * 骑手实体
     */

    @TableField(exist = false)
    private RiderBean rider;
}
